package com.example.base.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("字典类别")
public class SysDicCategoryVo {

    private Integer id;
    /**
     * 类别名称
     */
    @NotBlank(message = "类别名称不得为空")
    @ApiModelProperty(value = "类别名称")
    private String categoryName;
    /**
     * 类别代码
     */
    @NotBlank(message = "类别代码不得为空")
    @ApiModelProperty(value = "类别代码")
    private String categoryNo;
    /**
     * 父id
     */
    @NotNull(message = "类别父级不得为空")
    @ApiModelProperty(value = "父id")
    private Integer pid;
}
